

$sea-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);
$sea-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);
$sea-color-white: #fff; // 白色

/**
 * Component: Small Box
 * --------------------
 * 选自 lte-admin 的一个组件，首页最顶上的信息盒子，用于展示一些系统的关键参数
 */
.sea-small-box {
    border-radius: 2px;
    position: relative;
    display: block;
    box-shadow: $sea-box-shadow-lighter;

    &:hover {
        box-shadow: $sea-box-shadow;
        text-decoration: none;
        color: $sea-color-white;

        .icon {
            font-size: 95px;
        }
    }

    > .sea-small-box-inner {
        padding: 10px;
    }

    > .sea-small-box-footer {
        position: relative;
        text-align: center;
        padding: 3px 0;
        color: $sea-color-white;
        display: block;
        z-index: 10;
        background: rgba(0, 0, 0, 0.1);
        text-decoration: none;

        &:hover {
            color: $sea-color-white;
            background: rgba(0, 0, 0, 0.15);
        }
    }

    h3 {
        font-size: 38px;
        font-weight: bold;
        margin: 0 0 10px 0;
        white-space: nowrap;
        padding: 0;
        z-index: 5;
    }

    p {
        font-size: 15px;
        z-index: 5;

        > small {
            display: block;
            color: #f9f9f9;
            font-size: 13px;
            margin-top: 5px;
        }
    }

    .icon {
        -webkit-transition: all 0.3s linear;
        -o-transition: all 0.3s linear;
        transition: all 0.3s linear;
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 90px;
        color: rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 767px) {
    .sea-small-box {
        text-align: center;

        .icon {
            display: none;
        }

        p {
            font-size: 12px;
        }
    }
}